﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="manager_taskfinish_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>完结任务</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <section class="content-header">
        <h1>完结任务
            <small>已完成任务</small>
        </h1>
        <ol class="breadcrumb">
            <li><a><i class="fa fa-dashboard"></i>主页</a></li>
            <li><a href="userManager.aspx">已完成任务</a></li>
            <li class="active">完结任务</li>
        </ol>
    </section>

    <section class="content">
        <div class="box box-primary">
            <div class="box-header with-border">
                <h3 class="box-title">已完成任务</h3>
            </div>
            <div class="box-header with-border">
                <div>
                    <div class="col-md-12">

                        <label style="margin-left: 20px;">任务日期 年</label>&nbsp;
                        <asp:DropDownList ID="ddl_year" runat="server">
                            <asp:ListItem Selected="True">全部</asp:ListItem>
                            <asp:ListItem>2017</asp:ListItem>
                            <asp:ListItem>2018</asp:ListItem>
                            <asp:ListItem>2019</asp:ListItem>
                        </asp:DropDownList>
                        <label style="margin-left: 20px;">月</label>&nbsp;
                         <asp:DropDownList ID="ddl_month" runat="server">
                             <asp:ListItem Selected="True">全部</asp:ListItem>
                             <asp:ListItem>1</asp:ListItem>
                             <asp:ListItem>2</asp:ListItem>
                             <asp:ListItem>3</asp:ListItem>
                             <asp:ListItem>4</asp:ListItem>
                             <asp:ListItem>5</asp:ListItem>
                             <asp:ListItem>6</asp:ListItem>
                             <asp:ListItem>7</asp:ListItem>
                             <asp:ListItem>8</asp:ListItem>
                             <asp:ListItem>9</asp:ListItem>
                             <asp:ListItem>10</asp:ListItem>
                             <asp:ListItem>11</asp:ListItem>
                             <asp:ListItem>12</asp:ListItem>
                         </asp:DropDownList>&nbsp;
                        <asp:Button ID="Button1" class="btn btn-primary" runat="server" Text="筛选筛选" OnClick="Button1_Click" />

                    </div>
                </div>
            </div>
            <div class="box-body">
                <table id="Listask1" class="table table-bordered table-striped">
                    <thead>
                        <tr>
                            <th></th>
                            <th class="col-sm-5">标题</th>
                            <th class="col-sm-1">发布者</th>
                            <th class="col-sm-2">截止日期</th>
                            <th class="col-sm-2">完成日期</th>
                            <th class="col-sm-1">得分/总分</th>
                            <th class="col-sm-1">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:Repeater ID="rpt_Listask1" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td><%# Eval("id") %></td>
                                    <td><%# SQ_Eval_Pub.GetTaskType(Eval("type").ToString()) %> <%# Eval("title") %></td>
                                    <td><%# Eval("fb_username") %></td>
                                    <td><%# Convert.ToDateTime(Eval("rq_yjs")).ToString("yyyy-MM-dd") %></td>
                                    <td><%# Convert.ToDateTime( Eval("rq_sjs")).ToString("yyyy-MM-dd") %></td>
                                    <td><b><%# Eval("gp") %>/<%# Eval("sp") %></b></td>
                                    <td><a style="cursor: pointer;" href="view.aspx?taskid=<%# Eval("ID") %>">查看</a></td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                </table>
            </div>
        </div>
    </section>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptPlaceHolder" runat="Server">
    <script>
        $(document).ready(function () {
            $("#Listask1").DataTable(
                {
                    "columnDefs": [
                        { "targets": [0], "visible": false }
                    ],
                    "autoWidth": true,
                    "ordering": false,
                    "scroll": true,
                    "language": {
                        "url": "/reference/plugins/datatables/Chinese.json"
                    }
                });
        });
    </script>
</asp:Content>




